from django.db.models.signals import post_save, post_delete
from django.dispatch import receiver

from .models import Station, StationMoreInfo

# @receiver(post_save, sender=Station)
# def create_entity_cal_model_total(sender, instance, created, *args, **kwargs):
#     if created:
#         StationMoreInfo.objects.create(station=instance)

# @receiver(post_delete, sender=Station)
# def delete_entity_cal_model_total(sender, instance, **kwargs):
#     instance.info.save()